@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>渠道管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            &nbsp;&nbsp;&nbsp;
                            <div class="col-sm-2">
                                <#NameCon id="channelName" name="渠道名称" />
                            </div>
                            <div class="col-sm-2">
                                <#NameCon id="channelCode" name="渠道编码" />
                            </div>
                            <div class="col-sm-2" id="channelTypeDiv">
                                <#select id="channelType" name="渠道类型" />
                            </div>
                            <div class="col-sm-2">
                                <#TimeCon id="createTime" name="开始时间" isTime="false" pattern="YYYY-MM-DD" />
                            </div>
                            <div class="col-sm-2">
                                <#TimeCon id="updateTime" name="结束时间" isTime="false" pattern="YYYY-MM-DD" />
                            </div>
                            <div class="col-sm-1">
                                <#button name="搜索" icon="fa-search" clickFun="OrderChannel.search()"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="hidden-xs" id="OrderChannelTableToolbar" role="group">
                                @if(shiro.hasPermission("/channel/add")){
                                <#button name="添加" icon="fa-plus" clickFun="OrderChannel.openAddOrderChannel()"/>
                                @}
                                @if(shiro.hasPermission("/channel/edit")){
                                <#button name="修改" icon="fa-plus" clickFun="OrderChannel.openEditOrderChannel()" space="true"/>
                                @}
                                @if(shiro.hasPermission("/channel/add")){
                                <#button name="添加渠道类型" icon="fa-plus" clickFun="OrderChannel.openAddOrderChannelType()"/>
                                @}

                            </div>
                        </div>
                        <#table id="OrderChannelTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/orderChannel/orderChannel.js"></script>
@}
